<?php
use think\middleware\Throttle;
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
//微信授权
Route::get('wxLogin', 'Index/wxLogin');
//列表
Route::get('listDatas', 'Index/listDatas')->middleware(Throttle::class)->middleware(\app\middleware\CheckToken::class);
//轮播图
Route::get('img', 'Index/img')->middleware(\app\middleware\CheckToken::class);
//
Route::get('add', 'Index/add')->middleware(\app\middleware\CheckToken::class);
//详情
Route::get('detail', 'Index/detail')->middleware(\app\middleware\CheckToken::class);
//地图
Route::get('map', 'Index/map')->middleware(\app\middleware\CheckToken::class);
//房间列表
Route::get('room', 'Index/room')->middleware(\app\middleware\CheckToken::class);
//房间详情
Route::get('roomDetail', 'Index/roomDetail');
//添加入住人信息
Route::post('messageAdd', 'Index/messageAdd');
//查询入住人信息
Route::get('messageSelect', 'Index/messageSelect');